Image attachment detection uses filename extension as well.
Todo: use exif_* or finfo_* etc.
Fixed archive, trash, spam buttons to use configured default folders