Sets limit to the max image size.