I'm not comfortable doing equality comparison with floats.

I'd rather use integers (so 100, 75, 50, 25) instead, and we would divide by 100 when calling toBlob. Does this sound reasonnable ?