change api to img flip api