Changed default quality to Double.MIN instead of -Double.MAX