If you could post up some sample code or a sample project that doesn't work there are plenty of us here that could look at it and see if we can spot your problem. It also helps to have a prototype that shows the desired response (simple as an image showing before change and after). Sounds like your trying to build a tile joiner.