Added a global variable to allow to use the trim box instead of the crop or media box