changed 3d camera to scale by an average of x and y scale