Part of a solution to Issue #53; made toImage not use GraphicsEnvironment in the case of running in Headless mode.
Part of a solution to Issue #53; made toImage not use GraphicsEnvironment in the case of running in Headless mode.

git-svn-id: d976a3fa9fd96fa05fb374ae920b691bf85e82cb@469 aadc08cf-1350-0410-9b51-cf97fce99a1b

tangentforks/piccolo2d.java