replace code to img