fix avatar cropping bug