Added function to create a sprite for a character