Use new image manipulating function.
Corrected wrong imagecreate function.