Generic MS Paint copy written in Java Swing