Changed viewfixdir to viewmode; Added auto-scaling (disabled for now)