A subarcsecond L- and M-band imaging atlas of local active galactic nuclei