Automatic nine-patch tool that crops central part of image (buttons, inputs, backgrounds)