Add some sprite code
Fix up sprite code