Image Manipulation Program in Java