some weirdness with fromPixels