Further fiddling to try and make sprite animation work.