Fix glitchy sprites

By moving sprite setting stuff to update()