Port Jose's changes on the blur renderer

Now it supports masks