class for photos