tidied up sprite and animated sprite into graphics code proper. rather a large commit, though, dropbox seems to have confused git a bit