Given a directory of images you can just do:

ls | awk '1 {printf("<img src=\"%s\"><br/>\n",$1);}' >index.html

I don’t think it gets any easier than that.