added option for type of offset (traveled or remaining) to allow to
define the offset from one side of the screen or the other