check the imagick version before using it.