source code:
gui3.java
ImageCanvas.java