Try Draw as Border:
It breaks your image into 9-slice depending on the margins provided. (breaks into nine images - 4 corners, 4 sides and one center that is discarded in that case)
In my case the corners are each 25% of the image - 8x8 pixels. You might need different margins for your picture.
Draw as Box works similarly but stretches the sides and keeps the center.