If you change the balloons.js close button from the default that is not a specific 16x16 it hangs off the balloon.
This patch creates a temporary JavaScript Image object to find the width of the image and use that in the calculation of the margin.
closeButton dynamic margin patch
closeButton dynamic margin patch