Addind some test to avoid generating an image or stats if the number of days is less than 1 !