Don't store attachments if option is turned off

Also use specific versions of dependencies. Star could really cause problems with breaking API changes