Fixing img tag to use html type instead of text