create_element now includes attribute value assignment

the function create_element now lets you pass in arbitrary attributes to
the element_build_dict like {'src':'xyz.com/toy.jpg'}