Fixed the image wrapping with span tag