Comments sometimes are wrong, so don't trust them
Add check for basemap
Refactor rasterization a bit