Fix bad syntax but there is still a bug about image files