History

Added history functionality to revert images to old state.