Added initial masking of image