Equivalent expressions but less convoluted: 

this.fit.left = photoX - centerX;
this.fit.top =  photoY - centerY;