adding nextFrame prevFrame to sprite element and a couple bug fixes to boot