fixed rgb

also: poor embed function