fix contimg script