Begin of Imagick implementation