Adding delete action to PhotoComponent.