Added shared checking to photo/album pages

The part where I added:
((this_photo.published == 'shared') and (this_user.following.filter(pk=this_photo.user_id)[0].id == this_photo.user_id))
That returns True if the photo is marked 'shared' and the user is following the user who owns the photo.