Minor Fixes

Fixes to logging, lba mask, imagemeth residual, lba mosaicing (avgpbr),
always able to copy log on crash.