refactored images.js
added invite