Restructured photoObject, added title, and changed location of loadPhotos() call.