Fixing some issues with photos not updating and not disappearing when deleted