Splits up images with java