added support for displaying overlayed image dimensions and use of img tag in addition to div tag.