Added command line options
Added jpeg quality option
Fixed errors in option defaults