Added settings class, added functionality to save image