fix image upload and url