bug fix and layout tweak for inline image