updates sprite with locks