fix sprite animation jerkiness