added color selection and invertion.