cleanup access to htmlimage