Update script to crop based on image content.