Fix image randint/uniform