Corrects horizontal orientation and adds horizontal offset.