added support for png preserving alpha transparency and also fixed quality parameter to be an integer instead between 1 and 100 as official doc says