More sprite rewrite stuff. New sprite editor almost functional