added saving of the image info