merged Alan's changes, added width and height to the python function and
img tags