added photo storage capabilities and tests