operations/workshop: Allow to specify "srgb" for operating in gamma-encoded space

This is usually what people expect coming from PS etc.
Also moves the gradient calculation logic into prepare(),
as that is guaranteed to be called on all property changes.
Could maybe even drop it, as most changes will invalidate cache...