fix image upload on register