wire up the attach-photo feature