width and height gflags, and fix silly frame-rep bug from last commit