Fixed bug in admin and added image upload