Write history only when in darkroom mode.

Continued work ofr 6ebf97c.
Fix issue when duplicating image from lighttable.
Needed preparations for loading of uncropped, unscaled raw images
rawspeed: break everything! Stop cropping & scaling B/W
unbreak
rawprepare IOP: soft boundaries