Quote variables in mkicon
Process transparent images more robustly in mkicon

Adding the -flatten command-line option ensures that various opacity
areas are correctly rendered on top of the background color.