Added sprite generation. Some textures do not render correctly.