* Fix for encoding large images.