Render gradients
Avoid exceptions when missing dependencies
Small fixes and cleanups