made save script delete old avatars
started working on thumbnail function in base class