Add some sprite-related logic.