Corrected image orientation.
side marker calculation.