If kernel.dmesg_restrict is enabled (which it now will be by default) and sudo is installed, ask whether to use sudo. If this is denied or fails then fall back to writing a placeholder in the bug report.
We only really support the 'plain' type. Remove all the conditions on image type and remove 'plain' from all target and file names.