drawing of heights and gradients works properly