winsane: Update length variable in all relevant cases
winsane: Return EOF status code if scan has completed
wiasane: Only add additional y-bytes if the scanned image is complete