PHP can harness the power of the GD Graphic Library, allowing the generation and manipulation of images.
You can create images based upon simple lines, rectangles, arcs and circles, as well an manipulating existing graphics files.
So I recently took my first steps in creating images in PHP on a RaspberryPi.