fix extraneous print and image number printing