updated photo functionality
updated photo functionality