change x and y positions from pixel number to percentage of canvas width and height
change x and y positions from pixel number to percentage of canvas width and height