Fixed canvas point conversion function