Fixed bug where photos weren't being deleted on deleteall