Removed unused sprite functions