Added cropping features to command line tool.