linescan-conversion function

Rejig linescan images.