Have you looked at you scanner software to see if you can rotate the image after scanning and before saving? R
open