first working version of 9patch command