Utility to easily crop a picture to a given dimension implemented in Java