Do not create preview image if track contains no position data
Added option to use time instead of distance as plot x-axis