Separate image generation routines from main functionality of PSD generation.

TestImage will still do all of same functions (inherits from PImage)
including generation of images - like adding circles, etc. The main
functionality is now stand-alone in PImage (which makes this class a
little more lightweight).