Add offsets support for altering viewport