previous image only reading next image