Convert image to html with python