Fix broken photo metadata upload