Update index.js

Added file comparison, stores third image to local drive.