Add windowToCanvas calculation