added zoom level calculator for image size