added image upload function
added config files