FIX: Support pausing inline animated images (PR #13033)

Inline images are rare, but pausing them was previously causing the layout to shift.

GitHub