Support for prefabricated patterns

Arguments -grid-rows and -grid-cols added for consistency with
calibgrid.
When a known configuration is selected, a known dot grid is loaded
instead of being randomly generated. This avoid issues between
gcc/clang builds.