Added alert in index.js to alert when a picture is taken