Masked image fixes

Two bugs:

 1. Constraining mask to landmarks with existing non all-true mask. This would break due to the size of the mask.
 2. Handle NaNs when setting outside the mask colour. Make the background white.