refactoring + added the ability to save an image as a homepage pic