Fix decoding error with Imagick driver

See: https://github.com/Intervention/image/issues/1261