Create images from DOM elements by JS matrix.