fixed OpenFileDialog for device rotation