Changed finding IFD1, possible fix for out of memory issues