Buffered Image utility class implemented in Java