modify image path and syntax errors