Fixed the broken screen image issue when rotating device.