removing resolution values from locals and fixing bug to set the medium quality when camera starts for the first time