Set overlay height and width to height and width of pictures.