+ Added checks so that after reading the image it is held in memory with the origin at bottom left.