refactoring to use Java 2D