Updated readImage

I am sure scanf has error to it. May try to talk tomorrow with COL Baker about it.