Add a function storing images
update .gitignore