animation works, now need to be able to programmatically flip frames