fix image upload (fixes #556)