register resizing hook only if Imagick is available