add io.getres method for update;modify display.newSprite for update.