populates the pictures controller