adjust image size for better scaling