I think it would be easier to do in Photoshop than to write a method.
Create a new 600 x 1000 pixel image in Photoshop.
Open up Photoshop's preferences and go into Guides, Grid, Slices, and Count and set "Gridline Every: 100 pixels."
Then to show the grid go to View > Show > Grid, and then make sure that View ...