ability detect image width and height and output in img tag if value=?