Set image format using imagick