add new photo, change link targets in gallery