add requirement.txt, add cgi interface of get_code_img