auto cut image to html table layout.