setMaxImageSize

Set maximum image size in pixels