Improve stereo rendering

This fixes some bugs in the stereo support I added a while ago, and improves the stereo effect.