Fix image randomness.