Cleaned up some bugs in adding photos