Added crop functionality.