fix redirect
fix image upload