if an image instance is deleted, we also delete the media files