Custom embed handler