fix alignment
photo uploading refactored