Now renders a flag raster
Refactor: Moving out flag computation to function