[CMake] Fix flags definition in ImageIn