Fix #286: Some image files are not correctly handled by Imagick