added image upload and management to posts