Update convert_to_img to read from erb file