Updated graphics code
Functional sprite batch