Add trim command to automatically crop an image.