Modified to support inline image displayed in web page.