Automatic generation of affective 3D virtual environments from 2D images