I think it is because GMail remembers the last folder used. So if you attached a photo last time, it thinks you want to attach a photo this time. Navigate to your Documents folder and attach the document. Next time you try to attach something it will go straight to your Documents folder.
Microsoft Surface Book 2 15in review