transformations to get image pixel from canvas pixel
remove old variables