Fixed the GOTO crap in PrintImageUtils.java and also added a test case for the trimming Job.