* fixed division by zero warning when image size cannot be determined