added support for png preserving alpha transparency and also fixed quali...

...ty parameter to be an integer instead between 1 and 100 as official doc says