Accelerometer based horizon and keystone perspective correction