Improve NinePatch.
Ninepatch now supports tiled texture in patches.
Fix converting pixels to texture coordinates.