Replaced usage of Imagick by custom adapter