Compile fix, cleanup and improve scale9Grid Drawing