PNG/JPEG avatars fix