Fixing a button that trim images and restore their original timestamps

The problem you encountered is probably related to this/mine: