Add support for viewport scaling