This is an example of using very basic shapes to draw an image. We have used the Grid here to make it easier to find the placement numbers...as illustrated here:
Remember all when you draw, you are actually drawing in 3D....top down AND canvas out.
Just changing the placement of the code in edit will change the image, which makes the filling and enhancing challenging.
Here is the image with a tranparent back:
Here are the scripts, just grab the text file and change it to PHP and see what you can do..