function to compact osx images.

Since they dont get, littler after removing data from them you need to
compact them, so you would probably like to automate that. (especially
if you backup things to images to preserve rights)
Example of a hdutil script