fix image upload path for new files