working on the ninepatch rendering