bugfix: incorrect embed for non-image files