-------------------------------------------------------------------------------------------------------- function to generate mask of the pixels that move inside the image boundary --------------------------------------------------------------------------------------------------------
source not stored for this graph (policy: none)