Add method ImageDate::extendTo().

Authored by johanneszarl on Oct 27 2018, 7:38 PM.