Make deleting photos possible

Made the changes to allow deleting stuff.