Function getImageFromIFD