Fixed bug with photo deleting