When i click on page outside of 'EditImage' the crop is updated to a box with the dimensions of ratioDim:, What might I be doing wrong? here is my initialization. function InitCrop() { new Cropper.Img( 'EditImage', { ratioDim: { x: <?php echo $PosWidth; ?>, y: <?php echo $PosHeight; ?> }, displayOnInit: false, onEndCrop: onEndCrop } ); } Code (markup):