attempt to fix a bug with "multireading" of image