fix check for imagick #107

class_exists() triggerd __autoload and __autoload failed because Imagick.php
doesn't exists. Change function to "extension_loaded()"

Refs: #107