Added image upload functionality to posts