ENH: add apply montage function