Refactor, NanoIO add new function width and height
add namespace support