make write check if the file extension is  valid, savable format.
flipped row and column in new.