Throw an exception when an opened image is larger than an arbitrary limit