controlling heads based on heating elements forming bubbles