writing sprite