Added class for saving loaded previews.
Code fixes
Bug fixes