Moved drawing functions to image utility class.
added resource release method to image.
minor formatting of javadocs in image.