add table and functionality for pictures