clean up image and zero out free space