Image Processing Program in Java