Fix for scaling of nine-patch images.