Subject: | configured image size limits when reading image files |
a caller should be able to set a limit on width and height on images
read from files.
this prevents someone from maliciously supplying a large image file that
requires allocation of huge amounts of memory.