Copied imagefield_crop patch into slideshow branch.  #1557