1. A method in an electronic device for creating a combined image, the method comprising: obtaining a first set of at least two sub-images recorded by an array of image recording units; obtaining a second set of at least two sub-images recorded by the array of image recording units; calculating a first depth map for the first set of sub-images, the first depth map comprises information about a first plane of the sub-images and a second plane of the sub-images, the first plane being at a first distance from the point where the sub-images have been recorded, and the second plane being at a second distance from the point where the sub-images have been recorded: calculating a second depth map for the second set of sub-images, wherein the second depth map comprising information about the first plane and the second plane; stitching the first set of sub-images and the second set of sub-images in the first plane, to obtain a first stitched image; stitching the first set of sub-images and the second set of sub-images in the second plane to obtain a second stitched image; and combining the first stitched image with the second stitched image to create the combined image.