SetImageFormatAndQuality