A method for generating an ultrasound image, in the course of which data packages (24, 34, 40, 44, 48, F 1, F 2, F i, F a, F a+1, F b, F b+1) are recorded by moving an ultrasound transducer (10, 20, 30) along an investigation surface (22, 32, 38, 42, 46) and based on the data packages (24, 34, 40, 44, 48, F 1, F 2, F i, F a, F a+1, F b, F b+1) the ultrasound image is generated, the method comprises the steps of - determining a plurality of recording locations (L 1, L 2, L 3, L k, L n-1, L n) separated from each other by a recording spacing (Δy), - recording a first data package (24, 34, 40, 44, 48, F 1) placing the ultrasound transducer (10, 20, 30) on a first recording location (L 1) being on the investigation surface (22, 32, 38, 42, 46) and assigning the first data package (24, 34, 40, 44, 48, F 1) to a first image column (I 1) of the ultrasound image corresponding to the first recording location (L 1), characterised by repeating the following steps until loading forthcoming image columns: o recording a subsequent data package (24, 34, 40, 44, 48, F 2, Fi, F a, F a+1, F b, F b+1) by moving the ultrasound transducer (10, 20, 30) essentially along an image recording line being in an image recording direction, towards a forthcoming recording location, o calculating one or more actual image correlation value for a window with a window size J comprising more than one previous recording locations, by taking correlation between the subsequent data package (24, 34, 40, 44, 48, F 2, F i, F a, F a+1, F b, F b+1) and one or more image column corresponding to at least one previous recording location comprised in the window with the window size J; generating one or more correlation function value for the window with the window size J by evaluating a model correlation function either using a distance between the at least one previous recording location comprised in the window with the window size J and the forthcoming recording location, or a distance between the at least one previous recording location comprised in the window with the window size J and an estimated location of the subsequent data package, wherein the actual image correlation value is calculated and the correlation function value is generated for that at least one previous recording location comprised in the window with the window size J to which an image column has been assigned, and o evaluating a data package acceptance criterion based on weighted comparings of the one or more actual image correlation value and the corresponding correlation function value, investigating fulfilment of the acceptance criterion; and if the acceptance criterion is fulfilled, assigning, for the forthcoming recording location, the subsequent data package to the forthcoming image column (I 2, I 3, I k, I n-1, I n) of the ultrasound image and loading the forthcoming image column (I 2, I 3, I k, I n-1, I n). - determining a plurality of recording locations (L 1, L 2, L 3, L k, L n-1, L n) separated from each other by a recording spacing (Δy), - recording a first data package (24, 34, 40, 44, 48, F 1) placing the ultrasound transducer (10, 20, 30) on a first recording location (L 1) being on the investigation surface (22, 32, 38, 42, 46) and assigning the first data package (24, 34, 40, 44, 48, F 1) to a first image column (I 1) of the ultrasound image corresponding to the first recording location (L 1), o recording a subsequent data package (24, 34, 40, 44, 48, F 2, Fi, F a, F a+1, F b, F b+1) by moving the ultrasound transducer (10, 20, 30) essentially along an image recording line being in an image recording direction, towards a forthcoming recording location, o calculating one or more actual image correlation value for a window with a window size J comprising more than one previous recording locations, by taking correlation between the subsequent data package (24, 34, 40, 44, 48, F 2, F i, F a, F a+1, F b, F b+1) and one or more image column corresponding to at least one previous recording location comprised in the window with the window size J; generating one or more correlation function value for the window with the window size J by evaluating a model correlation function either using a distance between the at least one previous recording location comprised in the window with the window size J and the forthcoming recording location, or a distance between the at least one previous recording location comprised in the window with the window size J and an estimated location of the subsequent data package, wherein the actual image correlation value is calculated and the correlation function value is generated for that at least one previous recording location comprised in the window with the window size J to which an image column has been assigned, and o evaluating a data package acceptance criterion based on weighted comparings of the one or more actual image correlation value and the corresponding correlation function value, investigating fulfilment of the acceptance criterion; and if the acceptance criterion is fulfilled, assigning, for the forthcoming recording location, the subsequent data package to the forthcoming image column (I 2, I 3, I k, I n-1, I n) of the ultrasound image and loading the forthcoming image column (I 2, I 3, I k, I n-1, I n).