add ability to set number of rows per frame on command line