changed from imagick to gd