Updating code for thumbnail chooser embed.