The resolution images on pdf file are now changed with quality parameter

Just change the ratio calc.