fix imagick image adapter for older versions of imagick