Update readimage.c