horizontal and vertical flip added