gyro and image stuff
removed unused variables, implemented equivalent rectangles