Adds overviews with levels and resampling options.
levels a list of integral overview levels to build.
resampling the resampling mode. Defaults to lanczos.
minsize specifies maximum width or height of the smallest overview level.
Only taken into account if explicit levels are not specified. Defaults to 256.