Fixed templated error in connected_components dispatcher
Added grid gallery generator