only use alpha channel if it exists
improve patch according to reviewer's suggestion
Merge pull request #3009 from initOS/8.0-fix_escpos_with_non_rgba_image

Bug: Exception when printing POS receipt via hardware proxy