Improved quality of saved images
Added jpeg quality to preferences
Small optimizations