add ninepatch, fix bug