Optionally fill the rest of an area with a given value, minor changes