This new utility method is called from _displayImage() and from _clear()