This script does two things:
1) Display the image with an user defined width;
2) Wrap the image in an anchor tag that links to the full size image.
TODO: do not resize the image when it does not have a width attribute
AND is smaller than the maxWidth.