Fixed max image size issue