added gd imagetypes control