fix image uploading error when posting