Preserving scale for @2x and @3x displays when calculating grayscale

I noticed that grayscaled images are not sharp. This simple trick resolves this issue in my case.