max image size fix