Made a slight change to the map creator to support outputting images