change canvas upload from png to jpeg to get quality parameter