fixed reading multiple images from LIF