Added history so that users can click on past images and set as the preview. Also added security mode along with an example