Click and drag

Hi,
i actually want to make grids, on which i click and drag out & i release mouse click on the particular grid. A rectangle is form b/w the starting n ending grids consisting of same images on each grid.

Anyone know the solution of this prob????