Temporary bugfix for wrong greyscale statistics with large images