Implemented newer version of Java2D library