Function ImageAlloc.dispose

Dispose the underlying resource

override void dispose();