Fixed foreground/background drawing