fix generate_attachment_metadata to match correctly with month- and year-based, and flat folder structure
Merge pull request #14 from pnu/master

Fix the issue of not uploading scaled versions of the images