rows and cells now dynamically generated from rasterfile sizes