added fuction to allow users to attach a title to their photos