Replace simple media markup with figure markup