Splitting MapRenderer for save to file and drawing on window