Fixed a PHP 5.5.9 bug with sharpening.