Some fun with java image processing