Prevent creating invalid bitmap reps.