A method of changing foreground and background colors by copying existing colors from an image