added avatar resize support