calcs for graphics separated from drawing