Add height check and get rid of utils which was in the wrong place (i think)
Fix behavior of width and height to maintain the dimensions of images when resizing. Move htmlHeight into Utils so it can be used by both Element and Text.