Fix old method name and implement sprite
Move some lua glue function into lua table