implementing creating and storing photos