Control or error compensation of scanning position or velocity by controlling the position of the scanned image area