Merge pull request #4122 from yurydelendik/bug878397

Use a more compact typed array to pass the image mask from the worker
Merge pull request #4081 from yurydelendik/doubledraw

Avoiding double draw() calls
Checks if subpixel-aa enabled before scaling the fonts