gradientPicker: Fix for canvas height width init

When picker is in invisible container, canvas.width/height comes as 0
pixel, instead getting container element for canvas fixes the problem