Java Swing application for computing a colorkey version of an image