Extract the actual sending of image data from the `PartialEvaluator.buildPaintImageXObject` method
Extract the actual sending of image data from the `PartialEvaluator.buildPaintImageXObject` method

After PRs 10727 and 11912, the code responsible for sending the decoded image data to the main-thread has now become a fair bit more involved the previously.
To reduce the amount of duplication here, the actual code responsible for sending the data is thus extracted into a new helper method instead.

xavier114fch/pdf.js,mozilla/pdf.js,Shoobx/pdf.js,Shoobx/pdf.js,Snuffleupagus/pdf.js,macroplant/pdf.js,Snuffleupagus/pdf.js,caremerge/pdf.js,showpad/mozilla-pdf.js,nawawi/pdf.js,timvandermeij/pdf.js,showpad/mozilla-pdf.js,xavier114fch/pdf.js,nawawi/pdf.js,timvandermeij/pdf.js,nawawi/pdf.js,showpad/mozilla-pdf.js,mozilla/pdf.js,caremerge/pdf.js,macroplant/pdf.js,Snuffleupagus/pdf.js,macroplant/pdf.js,mozilla/pdf.js,timvandermeij/pdf.js,Shoobx/pdf.js