Update rotatingMask kernel

Updating the kernel to be able to execute the kernel by a smaller
number of threads than the actual size of the image, thus, making one
(or more) threads to perform various pixels instead of just one.