Adding feature to delete pictures