Update to the Nmag utility - it can now resize too.

I added the ability to resize images to the Nmag utility.