Fix rand bug
Fix halftone dot-scale for non-retina displays