Debugged deleting primitives.
Started adding pages to image grid.
Image grid refactored...