Adding a feature to delete pictures