First time here? Check out the FAQ!
answered 2013-02-18 09:25:49 -0600
http://stackoverflow.com/questions/4875372/how-to-slice-cut-an-image-into-pieces
I think this is fairly close to what you need.