Fixed uploading of images for posts