Religion was used as an ideology as a system of control. When they forced the veil upon women they were using it as an instrument of control in the same way that in Mao's China people were wearing Mao jackets and women were not supposed to wear any makeup.
My theory of characterization is basically this: Put some dirt on a hero and put some sunshine on the villain one brush stroke of beauty on the villain.