Fix wrong comparison that were giving problems in Cairo render
Fix old bug that doesn't map or unmap the Cairo surface correctly. This was causing major problems with the layers that do raster operations. Now it is fixed finally! Yeah!