fix for p tag before img html literal