When reading an image from an input stream, stop after the first time that a reader successfully reads the image.