Updated drawing method for hfgui