BUG: add media_root for image uploads in debug mode

1. in debug=true mode, images don't get uploaded unless media root is present