Added support for uploading photos