Device-independent graininess reproduction