add cacheing to inline-sprite generation via #897