tweak documentation
add method to return libgd object
whitespace changes
remove commented out code
remove filename from arguments, as not actually used
add docblock for build method
prune build arguments to what is actually required
add methods to build images directly without using mode
call output images, and remove header, caller should handle this.