replaced imagick with gd