This fixes the memory leak reported by @gregoiresage in #4

We need to keep a pointer to the memory we malloc'd for the bitmap so we
wrap the bitmap in a new NetImage struct.