anchor.diff:    pngWidth, pngHeight, newWidth, newHeight: Word;
     pngBase, pngShad, pngTeam, pngCrop, pngCropMask: TKMCardinalArray;
     X, Y, MinX, MinY, MaxX, MaxY: Integer;
  +  OverallMaxX, OverallMinX, OverallMaxY, OverallMinY: Integer;
     NoShadMinX, NoShadMinY, NoShadMaxX, NoShadMaxY: Integer;
     StrList: TStringList;
     dirBase, dirShad, dirTeam, suffixPath, outDirLocal: string;
  
positive.code:       else
          MakeInterpImagesPair(RT, StepSprite, StepNextSprite, -1, -1, dirTeam, ietTeamMask);
      end;
  
      //Import and process interpolated steps
      for SubStep := 0 to 6 do
  
negative.code:             needsMask := True;
          end;
        end;
  
        //Apply overall bounds to crop out the base background sprite
        MinX := Max(MinX, OverallMinX + (pngWidth div 2));
        MinY := Max(MinY, OverallMinY + (pngHeight div 2) + CANVAS_Y_OFFSET);
        MaxX := Min(MaxX, OverallMaxX + (pngWidth div 2));
        MaxY := Min(MaxY, OverallMaxY + (pngHeight div 2) + CANVAS_Y_OFFSET);
  
        //Crop
        if (MaxX > MinX) and (MaxY > MinY) then
        begin
  