remove unused images and add avatar method