Minor debug message improvements and formatting changes
Add fl (flatten layers) option and don't flatten png and gif by default
qmax adjustments