use pixel-ratio for masks