Generalize Pillow configurations by environment

Also cleanup previous code.
Refer to: #4476
@czue What pillows should be disabled for India?