adapt to version in images editing