use imagick after gd failed