fixed cmake build for image render