substituded QgsRenderer with QgsMapRenderer and QgsRenderContext