Corrected memory errors in Graphics to do with improper axis access.