photos uploading and rendering