changing img static dir to use upload path from config file
making the uploader methods more reusable, now saves in mongo db