A computer implemented method of forming a two-dimensional composite image from a plurality of image frames of a scene acquired using a portable electronic device associated with a user interface, the method comprising: sequentially processing image frames of the plurality of image frames by, for a processed image frame, - extracting features from the image frame (702, 704, 706), - associating the image frame with a set of points (708, 710, 712) representing the features, the set of points (708, 710, 712) having position in a three-dimensional point cloud space based on position information of the portable electronic device, - projecting the set of points onto a reference plane that represents the two-dimensional composite image, - adjusting the three-dimensional position of the set of points with respect to sets of points associated with image frames already processed so that the points representing same features overlap in the reference plane, thereby achieving a coarse alignment of the already processed image frames with the processed image frame, - incorporating the processed image frame to a representation of the composite image; analyzing content of the representation of the composite image while image frames of the plurality of image frames are being processed so as to determine a quality of the composite image; based on the analysis, determining at least one corrective action to improve the quality of the composite image; generating feedback to adjust incorporation of successive image frames of the plurality of image frames in accordance with the corrective action, wherein the corrective action comprises reducing inconsistencies in the composite image to finely align image frames within the composite image, the fine alignment being based on global positioning of image frames. sequentially processing image frames of the plurality of image frames by, for a processed image frame, - extracting features from the image frame (702, 704, 706), - associating the image frame with a set of points (708, 710, 712) representing the features, the set of points (708, 710, 712) having position in a three-dimensional point cloud space based on position information of the portable electronic device, - projecting the set of points onto a reference plane that represents the two-dimensional composite image, - adjusting the three-dimensional position of the set of points with respect to sets of points associated with image frames already processed so that the points representing same features overlap in the reference plane, thereby achieving a coarse alignment of the already processed image frames with the processed image frame, - incorporating the processed image frame to a representation of the composite image; - extracting features from the image frame (702, 704, 706), - associating the image frame with a set of points (708, 710, 712) representing the features, the set of points (708, 710, 712) having position in a three-dimensional point cloud space based on position information of the portable electronic device, - projecting the set of points onto a reference plane that represents the two-dimensional composite image, - adjusting the three-dimensional position of the set of points with respect to sets of points associated with image frames already processed so that the points representing same features overlap in the reference plane, thereby achieving a coarse alignment of the already processed image frames with the processed image frame, - incorporating the processed image frame to a representation of the composite image; analyzing content of the representation of the composite image while image frames of the plurality of image frames are being processed so as to determine a quality of the composite image; based on the analysis, determining at least one corrective action to improve the quality of the composite image; generating feedback to adjust incorporation of successive image frames of the plurality of image frames in accordance with the corrective action, wherein the corrective action comprises reducing inconsistencies in the composite image to finely align image frames within the composite image, the fine alignment being based on global positioning of image frames.