Important Bugfix for PHP 5.4 in Image handler.