A scala project to algorithmically cut up images