added quality param for png format