supported added for images, iframes and inputs & some minor code improvements