Cleaned up some code

This code works.
The user logged in cannot see any picture that he/she is not in the group who uploaded the picture.
The user can see everything else.