A method using an image capturing device for packing a plurality of images on a canvas to avoid overlapping images and void spaces between images, the method comprising the steps of: determining the number of the plurality of images to be placed on the canvas; determining a dimension of the canvas to determine whether the canvas has a landscape orientation or a portrait orientation; categorizing (501, 1001) the plurality of images to be placed on the canvas into three categories according to the aspect ratios of the plurality of images, the categories comprising landscape, portrait and square; determining (502; 1002) an initial number of cells of the canvas on which the plurality of images having different aspect ratios are to be packed by adding the number of the plurality of images to be placed on the canvas, the number of input images having landscape orientation, and the number of input images having a portrait orientation; calculating a number of rows of the canvas in the landscape orientation, and calculating a number of columns for each row of the canvas such that the initial number of cells are distributed equally amongst the number of rows of the canvas, starting from a first bottom row, or calculating a number of columns of the canvas in the portrait orientation and calculating a number of rows for each column of the canvas such that the initial number of cells are distributed equally amongst the number of columns of the canvas, starting from a first right column; vertically merging (506; 1006) pairs of cells having the same width and lying adjacent to each other in different rows of a same column; horizontally merging (507; 1007) pairs of cells having the same height and lying adjacent to each other in different columns of a same row; determining whether the resultant number of cells is the same as or greater than the number of the plurality of images; and placing (513; 1013) each of the plurality of images in a corresponding one of the plurality of cells of the canvas, according to respective aspect ratios of the plurality of images, when the number of the plurality of images is equal to the resultant number of the cells. determining the number of the plurality of images to be placed on the canvas; determining a dimension of the canvas to determine whether the canvas has a landscape orientation or a portrait orientation; categorizing (501, 1001) the plurality of images to be placed on the canvas into three categories according to the aspect ratios of the plurality of images, the categories comprising landscape, portrait and square; determining (502; 1002) an initial number of cells of the canvas on which the plurality of images having different aspect ratios are to be packed by adding the number of the plurality of images to be placed on the canvas, the number of input images having landscape orientation, and the number of input images having a portrait orientation; calculating a number of rows of the canvas in the landscape orientation, and calculating a number of columns for each row of the canvas such that the initial number of cells are distributed equally amongst the number of rows of the canvas, starting from a first bottom row, or calculating a number of columns of the canvas in the portrait orientation and calculating a number of rows for each column of the canvas such that the initial number of cells are distributed equally amongst the number of columns of the canvas, starting from a first right column; vertically merging (506; 1006) pairs of cells having the same width and lying adjacent to each other in different rows of a same column; horizontally merging (507; 1007) pairs of cells having the same height and lying adjacent to each other in different columns of a same row; determining whether the resultant number of cells is the same as or greater than the number of the plurality of images; and placing (513; 1013) each of the plurality of images in a corresponding one of the plurality of cells of the canvas, according to respective aspect ratios of the plurality of images, when the number of the plurality of images is equal to the resultant number of the cells.