added delete avatar function