Images to material editor

Is there a script where you choose a folder on a drive with images in, and the script puts all the images in separate materials within there own diffuse slot in the material editor.

it would be good if it also renamed the material the same name as the images. Generally I would like to have it a arch and design material , but others would also be useful.