Make SVG and Canvas renderer compatible to relative container sizes

SVG and Canvas renderer were calculating the size of the container object wrong. Instead of
recalculating them we can pass the dimensions of the container element to the renderer
constructor.