Check Out Free Download Pixelated Photoshop.Action.
This photo effect will break apart your photo into various sized squares. You can choose from 6 different directions – up, down, left, right, middle or build yourself. You have complete layer control over the positioning of all shapes, giving you maximum flexibility. The action will also create 20 color options for you to choose from.
For an example of how to use the ‘Build Yourself’ action, please skip to 22:45 of the video tutorial.
The action has been tested and working on Photoshop CS3,CS4,CS5,CS6,CC,CC 2015.5+