fix up the scale -> resolution calculation, add it to the example