implemented gyroscope to rotate image