changed imagecreatetransparent with imagecreatetruecolor