Configure CMakeLists, made image input as first argument, and others arguments