fix image rel path and uploading in gear updates