refactoring import-photo.js to register on import manager events