permalink-view-factory decorates attachment gallery modals with packageAttribute