Transform image jpg to html divs.