Description
Currently we validate mask in ImageDataWithMaskCursorHandleProvider constructor and later retrieve it in a same way in setupCursorFromImageData. Why not retrieve the mask from source and store it in mask field in the constructor? We then need to ensure that a mask that is first created from source and then scaled is the same as first scaling the source and then extracting a mask out of it.