shouldn't you delete the exif-information because otherwise browsers which respect the flag will rotate it a second time?