added avatar uploading for user profile; added image uploading for posts