Merge "sde: Add support for horizontal and vertical flip."