Refactored `colorAndGradientPreviewProvider()` and `imagePreviewProvider()` into separate functions.