Made sprite animation work.