This script can be used to add a grid on an image, specifying the grid size and the grid limits.
Python function
Check the directory path and Click on the start button and observe the result