Added filter for bought/uploaded photos. Minor changes to identity.updateUser