Correct positioning for cues with line position 'auto'.

In the case that the cue's line position is the special value
'auto' than the line numbers of the video are relative to the
bottom of writing direction. Bottom of the video for horizontal,
or left or right of the video depending on vertical writing
direction.