Added sprite generation