Fixed crash with masks with different value rather than 255. Now it is possible to use another value but the result becomes transparent depending of the level used.
Added Quadrilateral class