Updated write_img comments.
Changed parameter name; min_pop_count to min_population.