1. A method of handling overlay subpictures in stabilized images comprising: detecting an overlay subpicture in an input image; stabilizing the input image to form a stabilized image; and merging the overlay subpicture with the stabilized image to obtain an output image.