move scaling/offset to extension method class