use DeviceMotion to view a image