added image upload feature for posts