changed use of imagecopymerge to imagecopy, imagecopymerge doesn't preserver PNG transparencies
also added WIP initialise function