save nine-patch to png with setting size