[code] start to write img template