add handling of transparent overlays, and allow changing of the foreground and background color