Add image cropping

See issue #4