A straight copy of this: Image Manipulation with HTML5 Canvas: A Sliding Puzzle - SitePoint hotlinking Alan's photo:(