Updated wrapfig adaptation