refactored method getProminentColors to getColors for consistancy