Added support for effects drawing.

To do: update the shadow effect to consider rectangle sizes smaller than
the blur kernel.