unmaps the image when no longer needed