Added photo upload code.