Fixed bug preventing processing of a single image.